$OpenBSD: patch-gcc_opts_c,v 1.1 2012/09/01 00:00:33 pascal Exp $
--- gcc/opts.c.orig	Thu Aug 30 11:26:20 2012
+++ gcc/opts.c	Thu Aug 30 11:26:44 2012
@@ -564,6 +564,8 @@ decode_options (unsigned int argc, const char **argv)
 
   handle_options (argc, argv, lang_mask);
 
+  if (flag_pic || profile_flag)
+    flag_pie = 0;
   if (flag_pie)
     flag_pic = flag_pie;
   if (flag_pic && !flag_pie)
